package com.libetter.ideapluginsamples;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;

import org.jetbrains.annotations.NotNull;

public class HelloAction extends AnAction {
    @Override
    public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
        System.out.println("Hello Action!");
        Project project = anActionEvent.getProject();
        if (project == null) {
            return;
        }
        Messages.showMessageDialog(project, "Hello Action!", "Hello Action", Messages.getInformationIcon());
    }
}
